import 'package:json_annotation/json_annotation.dart';

part 'role_model.g.dart';

@JsonSerializable()
class RoleModel {
  RoleModel({
    this.createBy,
    this.createTime,
    this.dataScope,
    this.delFlag,
    this.flag,
    this.homeMenuId,
    this.menuCheckStrictly,
    this.menuIds,
    this.orgCheckStrictly,
    this.orgId,
    this.orgIds,
    this.orgName,
    this.permissions,
    this.remark,
    this.roleId,
    this.roleKey,
    this.roleName,
    this.roleSort,
    this.status,
    this.type,
    this.updateBy,
    this.updateByName,
    this.updateTime,
  });

  ///示例：null
  dynamic createBy;

  ///示例：null
  String? createTime;

  ///示例：1
  String? dataScope;

  ///示例：null
  String? delFlag;

  ///示例：false
  bool? flag;

  ///示例：null
  dynamic homeMenuId;

  ///示例：false
  bool? menuCheckStrictly;

  ///示例：null
  dynamic menuIds;

  ///示例：false
  bool? orgCheckStrictly;

  ///示例：null
  int? orgId;

  ///示例：null
  dynamic orgIds;

  ///示例：null
  String? orgName;

  ///示例：null
  dynamic permissions;

  ///示例：null
  dynamic remark;

  ///角色id (3-安装商 4-业主 5-运营商)
  int? roleId;

  ///示例：admin
  String? roleKey;

  ///示例：超级管理员
  String? roleName;

  ///示例：1
  int? roleSort;

  ///示例：0
  String? status;

  ///示例：null
  dynamic type;

  ///示例：null
  dynamic updateBy;

  ///示例：null
  String? updateByName;

  ///示例：null
  String? updateTime;

  factory RoleModel.fromJson(Map<String, dynamic> json) =>
      _$RoleModelFromJson(json);

  Map<String, dynamic> toJson() => _$RoleModelToJson(this);
}
